function fsb_error_handler(errmsg)

% FSB - DEV : Error handling
%
% EXAMPLE: fsb_error_handler(errmsg)
%
% INPUT:
% errmsg: Matlab error message
%
% OUTPUT:
% Text about error encountered
% 
% CALLED BY:
% FSB.m
% fsb_SPM5.m
% fsb_get_hemodynamics_er.m
% fsb_get_hemodynamics_er_baseline.m
%
% NOTES:
% This function catches errors and displays information
%
% Copyright 2010 MPI for Biological Cybernetics
% Author: Steffen Stoewer
% License:GNU GPL, no express or implied warranties
%
% $ Revision 1.0
%
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

disp('Error in file:'); disp(errmsg.stack(1).file); disp('Line:');disp(errmsg.stack(1).line);

end